package com.lap.auth.application.api;

import com.lap.auth.domain.api.Api;
import com.lap.auth.domain.api.repository.ApiRepository;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 提供给授权使用
 *
 * @author Shuisheng Lao(劳水生)
 * @version 0.0.1
 */
@RequiredArgsConstructor
@Service
public class ApiPermissionQueryService {

  private final ApiRepository apiRepository;

  public List<Api> getInsideApis(List<Integer> roleIds) {
    return apiRepository.findInsideByRoleIds(roleIds);
  }
}
